package com.cyj.dream.admin.model.system;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @Description: icon 图标转化
 * @BelongsProject: dream-DreamChardonnay
 * @BelongsPackage: com.dream.DreamChardonnay.model.system
 * @Author: ChenYongJia
 * @CreateTime: 2021-04-16 09:45
 * @Email: chen87647213@163.com
 * @Version: 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Entity
@Table(name = "dream_sys_icon_element")
@TableName(value = "dream_sys_icon_element")
@ApiModel(value="icon 图标转化", description="dream_sys_icon_element icon 图标转化")
public class SysIconElement implements Serializable {

    /**
     * 模块自动增长主键
     */
    @Id
    @TableId(value = "icon_id", type = IdType.AUTO)
    @Column( nullable = false , columnDefinition = "bigint(20) COMMENT '逻辑id主键'")
    @ApiModelProperty(value = "图标自动增长主键", example = "1")
    private Integer iconId;

    @ApiModelProperty(value = "图标名称")
    @Column(columnDefinition = "varchar(100) COMMENT '图标名称'")
    private String iconName;

}
